package cn.stylefeng.guns.modular.task.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import cn.stylefeng.guns.modular.task.entity.TaskOrder;
import cn.stylefeng.guns.modular.task.model.params.TaskOrderParam;
import cn.stylefeng.guns.modular.task.model.result.TaskOrderResult;

/**
 * 作业单表 Mapper 接口
 */
public interface TaskOrderMapper extends BaseMapper<TaskOrder> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2021-06-08
     */
    List<TaskOrderResult> customList(@Param("paramCondition") TaskOrderParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2021-06-08
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TaskOrderParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2021-06-08
     */
    Page<TaskOrderResult> customPageList(@Param("page") Page page, @Param("paramCondition") TaskOrderParam paramCondition, @Param("condition") String condition
    		, @Param("operateId")Long operateId);
    
    Page<TaskOrderResult> customPageListApplets(@Param("page") Page page, @Param("paramCondition") TaskOrderParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2021-06-08
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TaskOrderParam paramCondition);

	Integer countBydate(@Param("paramCondition")TaskOrderParam param, @Param("operateId")Long operateId);

	List<TaskOrderResult> findtaskreportList(@Param("paramCondition")TaskOrderParam param, @Param("operateId")Long operateId);

	List<TaskOrderResult> operateTaskList(@Param("paramCondition")TaskOrderParam param, @Param("condition")String condition, @Param("operateId")Long operateId);

	List<TaskOrderResult> operateTaskSum(@Param("paramCondition")TaskOrderParam param, @Param("condition")String condition, @Param("operateId")Long operateId);

	List<TaskOrderResult> panelOperateDay(@Param("paramCondition")TaskOrderParam param);

	List<TaskOrderResult> panelOperateMonth(@Param("paramCondition")TaskOrderParam param);

	TaskOrderResult findSum(@Param("paramCondition")TaskOrderParam param);

	TaskOrderResult findCount(@Param("paramCondition")TaskOrderParam param);

	List<TaskOrderResult> findSumtaskWork(@Param("paramCondition")TaskOrderParam param);

	List<TaskOrderResult> panelOperateMonthDuibi(@Param("paramCondition")TaskOrderParam param);

	TaskOrderResult findSum2(@Param("paramCondition")TaskOrderParam param);

	TaskOrderResult findBySpec(@Param("paramCondition")TaskOrderParam param);


}
